package com.cockatiel.statemachine.cola.statemachine.service;

import com.alibaba.cola.statemachine.Condition;
import com.cockatiel.statemachine.model.StatemachineContext;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * Created By Intellij IDEA
 *
 * @Author: louxiujun@kanzhun.com
 * @Date: 2023-06-11 09:12:29
 * @Description:
 */
@Component("smsStatusCondition")
@Slf4j
public class SmsStatusCondition implements StatusCondition{

    @Override
    public Condition<StatemachineContext> checkCondition() {
        return order -> {
            System.out.println("Check condition : " + order);
            return true;
        };
    }
}
